package ar.edu.unsam.algo3.plantasvszombies.wicket

import org.apache.wicket.markup.html.panel.Panel
import org.uqbar.wicket.xtend.WicketExtensionFactoryMethods
import org.uqbar.wicket.xtend.XLink
import ar.edu.unsam.algo3.plantasvszombies.ui.ApplicationModels.JardinAppModel

class MenuNavegacionPanel extends Panel {
	extension WicketExtensionFactoryMethods = new WicketExtensionFactoryMethods

	new(JardinAppModel jardinApp) {
		super("menuNavegacion")

		addChild(
			new XLink("jardin") => [
				onClick = [ |
					responsePage = new JardinPage(jardinApp)
				]]
		)

		addChild(
			new XLink("almanaque") => [
				onClick = [ |
					responsePage = new AlmanaqueZombiePage(jardinApp)
				]
			])

		addChild(
			new XLink("btnJardinZen") => [
				onClick = [ |
					responsePage = new JardinZenPage(jardinApp)
				]]
		)
	}

}
